import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import axios from 'axios';
import router from './router';
//引入mock.js配置文件
import './mock/index.js'
//import Mock from 'mockjs';
import store from './store';
import Cookies from "js-cookie";
//import './router/index.js'

const app = createApp(App);
//引入element-plus
app.use(ElementPlus);
//引入axios，全局引入axios
app.config.globalProperties.$axios = axios;
//全局引入mock，方便测试url
//app.config.globalProperties.$mock = Mock;

app.config.globalProperties.$cookies = Cookies;
app.use(store)
app.use(router);
app.mount('#app');
